package com.ht.domain.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 文章实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//数据库中对应的数据库名
@Document(collection = "article")
@Builder
public class Article {

    @Id
    private String id;
    //医生
    private String doctor;
    //职位
    private String level;
    //所属医院
    private String hospital;
    //所属科室
    private String department;
    //文章发表时间
    @Field("published_time")
    private String publishedTime;
    //文章标题
    @Field("article_title")
    private String articleTitle;
    //文章内容
    private String article;
    //科普文章审核状态 0:为审核,1:审核通过,2:审核不通过
    @Field("article_status")
    private String articleStatus;
    //科普文章类型
    @Field("article_type")
    private String articleType;
    //对应的知识id
    @Field("knowledge_id")
    private String knowledgeId;
    //对应的科普号id
    @Field("popularization_id")
    private String popularizationId;

}
